package com.eedi.framework.oauth2.dal.mapper;

import com.eedi.framework.mybatis.core.mapper.BaseMapperX;
import com.eedi.framework.oauth2.dal.dataobject.OrgOAuth2CodeDO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrgOAuth2CodeMapper extends BaseMapperX<OrgOAuth2CodeDO> {

    default OrgOAuth2CodeDO selectByCode(String code) {
        return selectOne(OrgOAuth2CodeDO::getCode, code);
    }

}
